<extend name="Public/base" />
<block name="style">
</block>
<block name="body">
    <include file="Public:artdialog" />
    <form method="POST" id="searchForm" method="POST" action="{:U('AdminUser/index_list')}"  name="listForm">
        <div class="row">
            <div class="col-md-12">
                <div class="block-web">
                    <div class="header">
                        <div class="actions_diy">
                            <div>
                                <a href="javascript:;"  onclick="_es_openDilog90('/indexadmin.php/Auth/auth_group_index','授权组','quanxianzu')" title="权限组">
                                    <span class="btn btn-default btn-primary"><i class="fa fa-male"></i>  <span>权限组管理</span></span>
                                </a>
                                <a href="javascript:;" onclick="_es_openDilog90('/indexadmin.php/Auth/auth_rule_index','菜单管理','caidanguanli')" title="菜单管理">
                                    <span class="btn btn-default btn-primary"> <i class="fa fa-gavel"></i> <span>菜单管理</span></span>
                                </a>
                                <a href="javascript:;" title="添加" onclick="_esOpendialogmini('{:U('AdminUser/add',array('is_add'=>0))}','添加管理员','tianjiaguanliyuan')">
                                    <span class="btn btn-default btn-primary"> <i class="glyphicon glyphicon-plus"></i> <span>添加管理员</span></span>
                                </a>
                            </div>
                        </div>
                        <h3 class="content-header">管理员列表</h3>
                    </div>
                    <div class="porlets-content">
                        <div class="table-responsive">
                            <div id="dynamic-table_wrapper" class="dataTables_wrapper form-inline" role="grid">
                                <div class="list-div" id="order_list_item_content">
                                    <div class="item-list-bd" style="height:100px;line-height:100px;text-align:center;">
                                        <img src="/Public/Admin/images/load3.gif" />
                                        加载中...
                                    </div>
                                </div>
                            </div><!--/table-responsive-->
                        </div><!--/porlets-content-->


                    </div><!--/block-web-->
                </div><!--/col-md-12-->
            </div>
        </div>
    </form>
</block>
<block name="script">
    <script type="text/javascript">

        $(function(){
            goSearch("#searchForm","order_list_item_content");
        });

        function load(){
            goSearch("#searchForm","order_list_item_content");
        }

        function delete_user(id){
            art.dialog({
                content: "您是否要删除！",
                icon: 'question',
                lock: true,
                opacity: 0.2,
                id:'dele',
                ok: function () {
                    var url="{:U('AdminUser/delete')}";
                    $.ajax({
                        'url':url,
                        'data':{user_id:id},
                        'dataType':'json',
                        'type':'post',
                        success:function(data){
                            goSearch("#searchForm","order_list_item_content");
                            var retstatus = data.status == 1 ? "1" : "0";
                            showvfmsg(retstatus, data.info, 1900);
                        },error:function(){
                            showvfmsg('error','请求服务器失败',2000);
                        },complete:function(){

                        }
                    });


                },
                cancelVal: '取消',
                cancel: true
            });
        }
    </script>
</block>